<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Unit;

class Person extends Model
{
    use HasFactory;

    protected $connection = 'pms';

    protected $table = 'person';

    public function unit()
    {
        return $this->hasOne(Unit::class,'id','unit_id');
    }
}
